import java.util.Scanner;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-06
 * Time:16:46
 */
class vet{
    vet()
    {}
    public  void shows(Animal a)
    {
        a.show();
        a.action();
        a.eat();
    }
}
public class Text {
    public static void main(String[] args) {
        Animal[] ff = new Animal[3];
        ff[0] = new dog("金毛狮", 22, "公");
        ff[1] = new cat("黑猫", 18, "母");
        ff[2] = new sheep("喜羊羊", 180, "公");
        vet kk = new vet();
        Scanner sc=new Scanner(System.in);
        int i=sc.nextInt();
        for (Animal f2 : ff) {
            kk.shows(f2);
            System.out.println("----------------");
        }
    }
}
